#ifndef INPUTMEMORYSTREAM_H
#define INPUTMEMPRYSTREAM_H

#include "inputstream.h"
#include <sys/stat.h>

#define BUFFER 1048576 

class inputmemorystream:public inputstream
{
	int fd;
	int rcount;
	int roffset;
	int* raddress;
	public:
	inputmemorystream()
	{
		fd = -1;
		rcount = 0;
		roffset = 0;
		raddress = 0;
	}

	virtual void open_s(const char *fileName);
	virtual int read_next();
	virtual bool end_of_stream();
	virtual void close_i();

	virtual ~inputmemorystream()
	{
		raddress = 0;
	}
};

#endif
